<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@include file="/WEB-INF/jspf/must/basePath.jspf" %>
<!--后台UI组件Start-->
<%@include file="/WEB-INF/jspf/zj/ligerui/LigerUI.jspf" %>
<%@include file="/WEB-INF/jspf/zj/ligerui/LigerUI_form.jspf" %>
<!--后台UI组件End-->


<!DOCTYPE html>
<html>
    <head>
        <title>11</title>

        <script src="dc_manager/base/refectory/fl/lookup/refectoryflLookUp.js" type="text/javascript"></script>
        <script type="text/javascript">
            $(function () {
                $.metadata.setType("attr", "validate");
                f_dcBaseRefectoryfl("flid2", "flid", 200, 400, 100);

                var v = $("#refectory_formID").validate({
                    debug: false,
                    errorPlacement: function (lable, element) {
                        if (element.hasClass("l-textarea")) {
                            element.addClass("l-textarea-invalid");
                        } else if (element.hasClass("l-text-field")) {
                            element.parent().addClass("l-text-invalid");
                        }
                    },
                    success: function (lable) {
                        var element = $("#" + lable.attr("for"));
                        if (element.hasClass("l-textarea")) {
                            element.removeClass("l-textarea-invalid");
                        } else if (element.hasClass("l-text-field")) {
                            element.parent().removeClass("l-text-invalid");
                        }
                    },
                    submitHandler: function () {
                        f_ajaxForm("refectory_divID", "weixinkeji/dev/dc/base/refectory/adu/add.imy", 400, 200);
                        return false;
                    }
                });
                $("#refectory_formID").ligerForm();

            });
        </script>
        <style type="text/css">
            body{ font-size:12px;}
            .l-table-edit {}
            .l-table-edit-td{ padding:4px;}
            .l-button-submit,.l-button-test{width:80px; float:left; margin-left:10px; padding-bottom:2px;}
            .l-verify-tip{ left:230px; top:120px;}
        </style>
    </head>
    <body style="padding:10px">
        <div id="refectory_divID">
            <form name="form" method="post"  id="refectory_formID">
                <table cellpadding="0" cellspacing="0" class="l-table-edit" >
                    <tr>
                        <td align="right" class="l-table-edit-td">系列:</td>
                        <td align="left" class="l-table-edit-td" style="width:160px">
                            <input type="text" name="flid" id="flid2" validate="{required:true,minlength:1}" maxlength="26" ltype="text"/>
                        </td><td align="left"></td>
                    </tr>
                    <tr>
                        <td align="right" class="l-table-edit-td">编号：</td>
                        <td align="left" class="l-table-edit-td" style="width:160px">
                            <input type="text" name="refectory_code" id="refectory_code" validate="{minlength:1}" maxlength="20" ltype="text"/>
                        </td><td align="left"></td>
                    </tr>
                    <tr>
                        <td align="right" class="l-table-edit-td">名称：</td>
                        <td align="left" class="l-table-edit-td" style="width:160px">
                            <input type="text" name="refectory_name" id="refectory_name" validate="{required:true,minlength:1}" maxlength="26" ltype="text"/>
                        </td><td align="left"></td>
                    </tr>
                    <tr>
                        <td align="right" class="l-table-edit-td">说明：</td>
                        <td align="left" class="l-table-edit-td" style="width:160px">
                            <input type="text" name="refectory_info" id="refectory_info" maxlength="50" size="50"/>
                        </td><td align="left"></td>
                    </tr>

                    <tr style=" height: 100px;">
                        <td></td>
                        <td>
                            <input type="submit" value="提交" id="Button1" class="l-button l-button-submit" /> 
                        </td><td></td>
                    </tr>
                </table>
                <br />
            </form>
        </div>
    </body>
</html>
